require.config({　
	paths: {
		'jquery': 'jquery.min',
		'hbs': 'handlebars-v2.0.0',
		'yapot-emoji-key': 'yapot-emoji-key',
		'yapot-emoji': 'yapot-emoji'
	},
	hbs: { // optional
	        helpers: true,            // default: true
	        i18n: false,              // default: false
	        templateExtension: 'hbs', // default: 'hbs'
	        partialsUrl: ''           // default: ''
	    }
});
require(['jquery', 'yapot-emoji-key', 'yapot-emoji','hbs'], function($,key,emoji,hbs) {
	var dom   = $("#entry-template").html();


	yapot_emoji({
		init_location:$('.jk'),
		dom:dom,
		position:{
			t:100,
			l:100,
		}
	}).open();

	yapot_emoji({
		types: 'set',
		callback: function(data) {
			console.log(data);
		}
	}).init();

	yapot_emoji({
		types: 'get',
		content: '我是表情[嘻嘻]',
		parsetype: 'single', //array single
		callback: function(data) {
			console.log(data);
		}
	}).init();

	$('a').click(function(){
		yapot_emoji().close();
	});
	
});